package fila;

import static org.junit.Assert.*;

import org.junit.Test;

import fila.FilaArrayCircular;
import fila.Fila;


public class TesteFilaArrayCircular {
	
	@Test
	public void testeSize(){
		Fila fila = new FilaArrayCircular();
		assertEquals(0, fila.size());
		fila.enqueue(1);
		assertEquals(1, fila.size());
		fila.enqueue(2);
		assertEquals(2, fila.size());
		fila.enqueue(2);
		assertEquals(3, fila.size());
		fila.enqueue(2);
		assertEquals(4, fila.size());
		fila.dequeue();
		assertEquals(3, fila.size());
		fila.dequeue();
		assertEquals(2, fila.size());
		fila.enqueue(2);
		assertEquals(3, fila.size());
	}
}